<?php
 // config file used to connect to data base.
 // connection to database.
 $con = mysql_connect("localhost","root","") or die('Cannot connect database!'.mysql_connect_error());
 // if database is not found.
 $query=mysql_query("SET CHARACTER SET utf8") or die('Cannot select CHARACTER SET utf8: ' . mysql_error());
 // selection of database.
 mysql_select_db("worldmusic",$con);
 mysql_query("SET NAMES 'UTF8'");
 function inject($str) {
 	return preg_replace('/(\s)|(\s+)|([=]+)|([or]+)/','', trim($str));
 }
?>